home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ply15dat.zip / BEZIER0.PI < prev    next >
Text File  |  1992-09-19  |  1KB  |  48 lines

  1. // Bezier patch
  2. viewpoint {
  3.    from <0,0,-15>
  4.    at <0,0,0>
  5.    up <0,1,0>
  6.    angle 45
  7.    resolution 160, 160
  8.    }
  9.  
  10. background <0, 0, 0>
  11. light <-10,10, -5>
  12.  
  13. define shiny_red
  14. texture {
  15.    surface {
  16.       ambient red, 0.2
  17.       diffuse red, 0.8
  18.       specular white, 0.7
  19.       microfacet Reitz radians(10)
  20.       }
  21.    }
  22.  
  23. define dented_red
  24. texture {
  25.    noise surface {
  26.       color <1, 0.2, 0.2>
  27.       normal 1
  28.       frequency 2
  29.       bump_scale 3
  30.       ambient 0.6
  31.       diffuse 0.5
  32.       specular 0.6
  33.       microfacet Reitz 10
  34.       }
  35.    }
  36.  
  37. object {
  38.    bezier 2, 0.05, 5, 5,
  39.       < 0.0, 0.0, 2.0>, < 1.0, 0.0, 0.0>, < 2.0, 0.0, 0.0>, < 3.0, 0.0,-2.0>,
  40.       < 0.0, 1.0, 0.0>, < 1.0, 1.0, 0.0>, < 2.0, 1.0, 0.0>, < 3.0, 1.0, 0.0>,
  41.       < 0.0, 2.0, 0.0>, < 1.0, 2.0, 0.0>, < 2.0, 2.0, 0.0>, < 3.0, 2.0, 0.0>,
  42.       < 0.0, 3.0, 2.0>, < 1.0, 3.0, 0.0>, < 2.0, 3.0, 0.0>, < 3.0, 3.0,-2.0>
  43.    translate <-1.5, -1.5, 0>
  44.    scale <2, 2, 2>
  45.    rotate <30, -70, 0>
  46.    dented_red
  47.    }
  48.